package com.haoshui.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.haoshui.domain.entity.UserRole;

import java.util.List;

/**
 * 用户和角色关联表(UserRole)表服务接口
 *
 * @author makejava
 * @since 2022-09-30 20:24:45
 */
public interface UserRoleService extends IService<UserRole> {

    boolean addUserRole(Long id, List<Long> roleIds);

    List<Long> getRoleIdsByUserId(Long id);

    boolean updateUserRole(Long id, List<Long> roleIds);
}
